package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.SjProjectNsctitemMapper;
import com.ruoyi.gcgl.domain.SjProjectNsctitem;
import com.ruoyi.gcgl.service.ISjProjectNsctitemService;
import com.ruoyi.common.core.text.Convert;

/**
 * 项目内审出图项Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
@Service
public class SjProjectNsctitemServiceImpl implements ISjProjectNsctitemService 
{
    @Autowired
    private SjProjectNsctitemMapper sjProjectNsctitemMapper;

    /**
     * 查询项目内审出图项
     * 
     * @param id 项目内审出图项主键
     * @return 项目内审出图项
     */
    @Override
    public SjProjectNsctitem selectSjProjectNsctitemById(Long id)
    {
        return sjProjectNsctitemMapper.selectSjProjectNsctitemById(id);
    }

    /**
     * 查询项目内审出图项列表
     * 
     * @param sjProjectNsctitem 项目内审出图项
     * @return 项目内审出图项
     */
    @Override
    public List<SjProjectNsctitem> selectSjProjectNsctitemList(SjProjectNsctitem sjProjectNsctitem)
    {
        return sjProjectNsctitemMapper.selectSjProjectNsctitemList(sjProjectNsctitem);
    }

    /**
     * 新增项目内审出图项
     * 
     * @param sjProjectNsctitem 项目内审出图项
     * @return 结果
     */
    @Override
    public int insertSjProjectNsctitem(SjProjectNsctitem sjProjectNsctitem)
    {
        return sjProjectNsctitemMapper.insertSjProjectNsctitem(sjProjectNsctitem);
    }

    /**
     * 修改项目内审出图项
     * 
     * @param sjProjectNsctitem 项目内审出图项
     * @return 结果
     */
    @Override
    public int updateSjProjectNsctitem(SjProjectNsctitem sjProjectNsctitem)
    {
        return sjProjectNsctitemMapper.updateSjProjectNsctitem(sjProjectNsctitem);
    }

    /**
     * 批量删除项目内审出图项
     * 
     * @param ids 需要删除的项目内审出图项主键
     * @return 结果
     */
    @Override
    public int deleteSjProjectNsctitemByIds(String ids)
    {
        return sjProjectNsctitemMapper.deleteSjProjectNsctitemByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目内审出图项信息
     * 
     * @param id 项目内审出图项主键
     * @return 结果
     */
    @Override
    public int deleteSjProjectNsctitemById(Long id)
    {
        return sjProjectNsctitemMapper.deleteSjProjectNsctitemById(id);
    }
}
